#include "actionitemview.h"
#include <QDebug>

ActionItemView::ActionItemView(QWidget *parent) :
    QTableView(parent)
{
}

void ActionItemView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
{
    Q_UNUSED(bottomRight);

    emit signalDataChanged(topLeft);
}

void ActionItemView::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
{
    Q_UNUSED(deselected);

    QModelIndexList indexList = selected.indexes();
    if (indexList.count()) {
        emit signalSelectionChanged(indexList[0].row(), indexList[0].column());
    }
}
